-
Notifications
You must be signed in to change notification settings - Fork 0
ES2015 transformation for private properties (WIP, Joey Watts) #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
do a really rough, quick-and-dirty unblock-people job of letting #foo be parse-able. steps to test: npm run lint && npm test See https://bbgithub.dev.bloomberg.com/javascript-guild/typescript-private-fields/ quick start guide for seeing the AST CI testing coming soon
* jenkinsfile * add npm run build step * lint * baseline change * accept more baselines * accept baselines * fix-scanner * baselines again
54d8ef9 to
1497ca2
Compare
Signed-off-by: Joseph Watts <jwatts43@bloomberg.net>
Signed-off-by: Joseph Watts <jwatts43@bloomberg.net>
Signed-off-by: Joseph Watts <jwatts43@bloomberg.net>
Signed-off-by: Joseph Watts <jwatts43@bloomberg.net>
src/compiler/transformers/esnext.ts
Outdated
| return visitParenthesizedExpression(node as ParenthesizedExpression, noDestructuringValue); | ||
| case SyntaxKind.CatchClause: | ||
| return visitCatchClause(node as CatchClause); | ||
| case SyntaxKind.PropertyDeclaration: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why did we need to add these new cases? Weren't they visited before?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The esnext transformer didn't need any special behavior with these SyntaxKinds until private names were introduced.
Signed-off-by: Joseph Watts <jwatts43@bloomberg.net>
|
Rebased off of the updated parser code, see new PR #10 |
early work-in-progress from @joeywatts on transpiling private names to target ES2015